<html>
<head>
     <title>Help: convert_unit</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <h4>convert_unit</h4>Convert unit of oceanic concentration substance
                  <br><small>Last modified: 17-Nov-2009 12:59:57</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/geophysic/convert_unit.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  <br>% convert_unit Convert unit of oceanic concentration substance<br>%<br>% NEW_SUBST_CONTENT = convert_unit(SUBST_CONTENT,SUBST_TYPE,UNIT_IN,UNIT_OUT,[SIG0,VERBOSE])<br>% <br>% Convert concentration of substance SUBST_CONTENT of type SUBST_TYPE <br>% from UNIT_IN to UNIT_OUT.<br>%<br>% Inputs:<br>%	SUBST_CONTENT: a double array of any dimensions<br>%	SUBST_TYPE:<br>%		'OXY'  for Oxygen (O2)<br>%		'PHOS' for Phosphate (PO4)<br>%		'NITR' for Nitrate (NIO3)<br>%		'NIO2' for Nitrite (NIO2)<br>%		'SIO3' for Silicate (SIO3)<br>%		'SIO4' for Silice (SIO4)<br>%	UNIT_IN is a string with format: NUMERATOR/DENOMINATOR with:<br>%		NUMERATOR   = 'mol';'mmol';'mumol';'kg';'g';'mg';'l';'ml'<br>%		DENOMINATOR = 'kg';'g';'m3';'l';'ml'<br>%		Any combination is allowed.<br>%	UNIT_OUT: idem as UNIT_IN<br>%	SIG0 is a singleton or a double array of SUBST_CONTENT dimensions.<br>%		It contains the anomalous potential density referred to the sea<br>%		surface in kg/m3.<br>%		Conversion is computed with RHO = 1000 + SIG0.<br>%		If SIG0 not specified, it is set to 0.<br>%	VERBOSE (0/1) prints information about the conversion on screen (0 by default).<br>%<br>% Example:<br>%	convert_unit(300,'OXY','mumol/kg','ml/l',0,1)<br>%	convert_unit(9,'OXY','ml/l','mmol/l',32,1)<br>%<br>% Rq:<br>%	Molar mass (g/mol):<br>%		O  = 15.9994;   % Oxygen<br>%		P  = 30.973762; % Phophorus<br>%		Si = 28.0855;   % Silicon<br>%		N  = 14.0067;   % Nitrogen<br>%		(Source: http://www.iupac.org/publications/pac/2006/pdf/7811x2051.pdf)<br>%	Molar volume (l/mol):<br>%		OXY = 22.3916; % at standard temperature and pressure (Garcia and Gordon, 1992).<br>% 		% Note that for an ideal gas it is: 22.413<br>%		...<br>%	The molar volume for other substances is not documented right now, so any conversion from<br>%	mole to liter is impossible and will return NaN. Only mole <-> kg<br>%	Well, OXY is a gaz while other substances are ions, so it's not so surprising. Beside, most<br>%	current conversions are from mumol or mmol per m3 to per l and thus do not involved molar<br>%	volumes.<br>%<br>% Other source: http://www.helcom.fi/groups/monas/CombineManual/AnnexesB/en_GB/annex9app3/<br>%<br>% Created: 2009-09-16.
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
